package com.zxcl.feign;

import com.zxcl.domain.MemberAddr;
import com.zxcl.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "member-service")
public interface OrderMemberFeign {
    /***
     * 获取会员的默认地址
     * @param openId
     * @return
     */
    @GetMapping("p/address/getDefaultAddr")
    Result<MemberAddr> getDefaultAddr(@RequestParam("openId")String openId);
}
